package cn.heyige.backend.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "收藏操作请求")
public class FavoriteRequest {
    
    @NotBlank(message = "记录ID不能为空")
    @Schema(description = "记录ID", example = "rec_1704097800789")
    private Integer recordId;
    
    @NotNull(message = "操作类型不能为空")
    @Schema(description = "操作类型", allowableValues = {"ADD", "REMOVE"})
    private String action;
}